#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <opencv2/opencv.hpp>
#include <detecposition.h>
#include <QPushButton>
#include <QLabel>
#include <QHBoxLayout>
using namespace cv;
class MainWindow : public QMainWindow
{
    Q_OBJECT

private:
    CvCapture *camera;
    IplImage *I, *src, *Icr;
    int isWork, isExit;
    DetecPosition det;
    QPushButton *btn;
    QLabel *label;

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
public slots:
    void work();
    void changeWorkState();
};

#endif // MAINWINDOW_H
